﻿namespace MTP
{
    class MTPConst
    {
        /// <summary>
        /// 协议头
        /// </summary>
        public static readonly byte[] PROTOCOL_HEADER = { 0x4D, 0x4D, 0x50 };

        /// <summary>
        /// 握手包长度
        /// </summary>
        public const int HANDSHAKE_LENGTH = 3 + 16 + 5 + 16;

        /// <summary>
        /// 协议长度
        /// </summary>
        public const int HEADER_LENGTH = 16 + 4 + 3;



        /// <summary>
        /// 单包最大长度 16k
        /// </summary>
        public const int MAX_LENGTH = 1 << 14;

    }
}
